<%-- 
    Document   : AddArtist
    Created on : Jun 8, 2012, 4:08:37 AM
    Author     : Jaice
--%>

<%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/style/style.css" />

<script  src="${pageContext.request.contextPath}/js/qaEffect.js"></script>
<script src="${pageContext.request.contextPath}/js/flexiblelist.js"></script>

<%-- The list of normal or fragment attributes can be specified here: --%>
<%@attribute name="artist" required="true" type="model.Artist"%>
<%-- any content can be specified here e.g.: --%>

<div id="itunewindow">



    <c:if test="${artist eq null}">
        <form method="POST" action="${pageContext.request.contextPath}/AddArtistController">
            Artist :  <input name="txtArtist" type="text"/>
            <input type="submit" value="Add" name="btnSubmit"/>
        </form>
    </c:if>

    <c:if test="${artist ne null}">
        Editing [${artist.name}]
        <form method="POST" action="${pageContext.request.contextPath}/AddArtistController">
            Artist :  <input name="txtArtist" type="text" value="${artist.name}"/>
            <input type="hidden" name="artistId" value="${artist.artistId}"/>
            <input type="submit" value="Update" name="btnSubmit"/>
        </form>
    </c:if>



</div>






